<?php
class AML_Model_Clients extends AML_Model_TablePrefix
{
	protected $_name= "client_reg";
	//$this->_name = DB_PREFIX.$this->_name;
	function checkUnique($username)
	{
		$select = $this->_db->select()
							->from($this->_name,array('reg_email'))
							->where('reg_email=?',$username);
		$result = $this->getAdapter()->fetchOne($select);
		if($result){
			return true;
		}
		return false;
	}
	function insertData(array $data){
			$this->insert($data);  
	}

}
